<?php
namespace App\Http\Logic;

use App\Models\SwtTradeAccountLog;

class TradeLogLogic extends BaseLogic
{
    public static function create($address_id, $user_id, $source_type, $text, $change_type, $change_amount)
    {
        return SwtTradeAccountLog::create([
            'address_id'    => $address_id,
            'user_id'       => $user_id,
            'source_type'   => $source_type,
            'text'          => $text,
            'change_type'   => $change_type,
            'change_amount' => $change_amount
        ]);
    }
}
